package com.tedu._04mybatis.mapper;

import com.tedu._04mybatis.pojo.User;
import com.tedu._04mybatis.pojo.UserVO1;
import com.tedu._04mybatis.pojo.UserVO2;
import com.tedu._04mybatis.pojo.UserVO3;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
//    @Insert("insert into user(username,password,nickname,created) values(#{username},#{password},#{nickname},#{created})")
    int insert(User user);
//    @Select("select id,username,nickname,created from user where id=#{id}")
    User selectById(Integer id);
    int dynamicUpdate(User user);
    UserVO1 selectUserVO1ById(Integer id);
    UserVO2 selectUserWeiboById(Integer id);
    UserVO3 selectUserCommentById(Integer id);
}
